#ifndef LOGR_PATHS_H
#define LOGR_PATHS_H

#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/time.h>
#include <assert.h>
#include <gr_graph_fun.h>

typedef struct _web_path_node {
    long naccesses;
    LNode_type *ledges;
    void *info;
} WebPathStruct;

typedef struct _web_path_node *WebPathPtr;
 
WebPathPtr
new_web_path_node(void);

void
delete_web_path_node(WebPathPtr opn);

void
LOGR_set_path_naccesses(WebPathPtr usn,long num);

void
LOGR_inc_path_naccesses(WebPathPtr usn);

long
LOGR_get_path_naccesses(WebPathPtr usn);

void
LOGR_set_path_info(WebPathPtr upn,void * info);

void *
LOGR_get_path_info(WebPathPtr upn);

void
LOGR_set_path_ledges(WebPathPtr upn,LNode_type * ledges);

void
LOGR_add_path_edge(WebPathPtr upn,void *edge);

LNode_type *
LOGR_get_path_ledges(WebPathPtr upn);

int
LOGR_get_path_number_edges(WebPathPtr upn);

short
LOGR_is_paths_equal(WebPathPtr upn,WebPathPtr vpn);

short
LOGR_is_path_empty(WebPathPtr wpn);

int
LOGR_is_path_number_edges_lower(WebPathPtr u, WebPathPtr v);

int
LOGR_is_path_number_edges_bigger(WebPathPtr u,WebPathPtr v);


#endif


